let timeout = null
export const debounce = (fun,time = 500)=>{
	if(timeout){
		clearTimeout(timeout)
	}
	timeout = setTimeout(()=>{
		fun()
	},time);
}